<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.4"/>
<title>gbmath: color_functions.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.jpg"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">gbmath
   &#160;<span id="projectnumber">v0.051</span>
   </div>
   <div id="projectbrief">c++ math library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.4 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#namespaces">Namespaces</a> &#124;
<a href="#namespaces">Constant Groups</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">color_functions.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>color functions.  
<a href="#details">More...</a></p>

<p><a href="color__functions_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
Namespaces</h2></td></tr>
<tr class="memitem:namespacegbmath"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacegbmath.html">gbmath</a></td></tr>
<tr class="memdesc:namespacegbmath"><td class="mdescLeft">&#160;</td><td class="mdescRight">math operations and structures . <br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
Constant Groups</h2></td></tr>
<tr class="memitem:namespacegbmath"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacegbmath.html">gbmath</a></td></tr>
<tr class="memdesc:namespacegbmath"><td class="mdescLeft">&#160;</td><td class="mdescRight">math operations and structures . <br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:adde6fcae4674b62b13d98835ab644ff5"><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacegbmath.html#adde6fcae4674b62b13d98835ab644ff5">gbmath::make_color_argb</a> (byte_t a, byte_t r, byte_t g, byte_t b)</td></tr>
<tr class="memdesc:adde6fcae4674b62b13d98835ab644ff5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Building a color-by-byte. Alpha One.  <a href="#adde6fcae4674b62b13d98835ab644ff5">More...</a><br/></td></tr>
<tr class="separator:adde6fcae4674b62b13d98835ab644ff5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1e70d560d8a1eb297da7c8b457e4ecf8"><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacegbmath.html#a1e70d560d8a1eb297da7c8b457e4ecf8">gbmath::make_color_rgba</a> (byte_t r, byte_t g, byte_t b, byte_t a)</td></tr>
<tr class="memdesc:a1e70d560d8a1eb297da7c8b457e4ecf8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Building a color-by-byte. Alfa last.  <a href="#a1e70d560d8a1eb297da7c8b457e4ecf8">More...</a><br/></td></tr>
<tr class="separator:a1e70d560d8a1eb297da7c8b457e4ecf8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a090e1dac80cfc9de247cb2232a8d53ee"><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacegbmath.html#a090e1dac80cfc9de247cb2232a8d53ee">gbmath::make_rgba</a> (float r, float g, float b, float a)</td></tr>
<tr class="memdesc:a090e1dac80cfc9de247cb2232a8d53ee"><td class="mdescLeft">&#160;</td><td class="mdescRight">The construction of an integer-valued color on components float (0.0f ... 1.0f)  <a href="#a090e1dac80cfc9de247cb2232a8d53ee">More...</a><br/></td></tr>
<tr class="separator:a090e1dac80cfc9de247cb2232a8d53ee"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a86348fe401e57ebc7d1cb88ae56d87d2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacegbmath.html#a86348fe401e57ebc7d1cb88ae56d87d2">gbmath::colorSwapRG</a> (unsigned int &amp;color)</td></tr>
<tr class="memdesc:a86348fe401e57ebc7d1cb88ae56d87d2"><td class="mdescLeft">&#160;</td><td class="mdescRight">exchange of components R и G .  <a href="#a86348fe401e57ebc7d1cb88ae56d87d2">More...</a><br/></td></tr>
<tr class="separator:a86348fe401e57ebc7d1cb88ae56d87d2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a051fc4a9302ce044eaed38596a16ed0c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacegbmath.html#a051fc4a9302ce044eaed38596a16ed0c">gbmath::colorSwapRB</a> (unsigned int &amp;color)</td></tr>
<tr class="memdesc:a051fc4a9302ce044eaed38596a16ed0c"><td class="mdescLeft">&#160;</td><td class="mdescRight">exchange of components R и B .  <a href="#a051fc4a9302ce044eaed38596a16ed0c">More...</a><br/></td></tr>
<tr class="separator:a051fc4a9302ce044eaed38596a16ed0c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a14a6ce40d9de3b9cc4168769a4007667"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacegbmath.html#a14a6ce40d9de3b9cc4168769a4007667">gbmath::colorSwapGB</a> (unsigned int &amp;color)</td></tr>
<tr class="memdesc:a14a6ce40d9de3b9cc4168769a4007667"><td class="mdescLeft">&#160;</td><td class="mdescRight">exchange of componentsG и B .  <a href="#a14a6ce40d9de3b9cc4168769a4007667">More...</a><br/></td></tr>
<tr class="separator:a14a6ce40d9de3b9cc4168769a4007667"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abadfca65c741ff7cbfec5a354f13c9f3"><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacegbmath.html#abadfca65c741ff7cbfec5a354f13c9f3">gbmath::rgba_to_argb</a> (unsigned int val)</td></tr>
<tr class="memdesc:abadfca65c741ff7cbfec5a354f13c9f3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Converting 4-byte RGBA color order in the order ARGB.  <a href="#abadfca65c741ff7cbfec5a354f13c9f3">More...</a><br/></td></tr>
<tr class="separator:abadfca65c741ff7cbfec5a354f13c9f3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abbb31a98774b47cf762d3080d31ebacf"><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacegbmath.html#abbb31a98774b47cf762d3080d31ebacf">gbmath::argb_to_rgba</a> (unsigned int val)</td></tr>
<tr class="memdesc:abbb31a98774b47cf762d3080d31ebacf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Converting 4-byte order ARGB color in order RGBA.  <a href="#abbb31a98774b47cf762d3080d31ebacf">More...</a><br/></td></tr>
<tr class="separator:abbb31a98774b47cf762d3080d31ebacf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aab8f1f7e8def74f47797bb70d8dffdb1"><td class="memItemLeft" align="right" valign="top">byte_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacegbmath.html#aab8f1f7e8def74f47797bb70d8dffdb1">gbmath::colorExtractA</a> (unsigned int color)</td></tr>
<tr class="separator:aab8f1f7e8def74f47797bb70d8dffdb1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ade6c81511566ea396750bf66c30e5798"><td class="memItemLeft" align="right" valign="top">byte_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacegbmath.html#ade6c81511566ea396750bf66c30e5798">gbmath::colorExtractR</a> (unsigned int color)</td></tr>
<tr class="separator:ade6c81511566ea396750bf66c30e5798"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a383d9596a5a819945f767301380f32c4"><td class="memItemLeft" align="right" valign="top">byte_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacegbmath.html#a383d9596a5a819945f767301380f32c4">gbmath::colorExtractG</a> (unsigned int color)</td></tr>
<tr class="separator:a383d9596a5a819945f767301380f32c4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5955f8a061aaa544c84d602d78f8e4ca"><td class="memItemLeft" align="right" valign="top">byte_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacegbmath.html#a5955f8a061aaa544c84d602d78f8e4ca">gbmath::colorExtractB</a> (unsigned int color)</td></tr>
<tr class="separator:a5955f8a061aaa544c84d602d78f8e4ca"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab00be5c4d690a506a8d1bf9f5adf2961"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacegbmath.html#ab00be5c4d690a506a8d1bf9f5adf2961">gbmath::colorExtractAf</a> (unsigned int color)</td></tr>
<tr class="separator:ab00be5c4d690a506a8d1bf9f5adf2961"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a466fe09e04657cfa09f9f22268fc3b67"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacegbmath.html#a466fe09e04657cfa09f9f22268fc3b67">gbmath::colorExtractRf</a> (unsigned int color)</td></tr>
<tr class="separator:a466fe09e04657cfa09f9f22268fc3b67"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a82814283317292d01794d61e4fb32bab"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacegbmath.html#a82814283317292d01794d61e4fb32bab">gbmath::colorExtractGf</a> (unsigned int color)</td></tr>
<tr class="separator:a82814283317292d01794d61e4fb32bab"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adb888739df93952d70b9d9b25cd7de96"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacegbmath.html#adb888739df93952d70b9d9b25cd7de96">gbmath::colorExtractBf</a> (unsigned int color)</td></tr>
<tr class="separator:adb888739df93952d70b9d9b25cd7de96"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a22d8d4b65f5d15cda17e111973024568"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacegbmath.html#a22d8d4b65f5d15cda17e111973024568">gbmath::colorSetA</a> (unsigned int &amp;col, byte_t a)</td></tr>
<tr class="separator:a22d8d4b65f5d15cda17e111973024568"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acc2f073f0400b3b83e286fb32abd84b1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacegbmath.html#acc2f073f0400b3b83e286fb32abd84b1">gbmath::colorSetR</a> (unsigned int &amp;col, byte_t r)</td></tr>
<tr class="separator:acc2f073f0400b3b83e286fb32abd84b1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:accf72509c11100fd01de8bb3f95e7e5a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacegbmath.html#accf72509c11100fd01de8bb3f95e7e5a">gbmath::colorSetG</a> (unsigned int &amp;col, byte_t g)</td></tr>
<tr class="separator:accf72509c11100fd01de8bb3f95e7e5a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a63d997c76f20c4b6879cd2991c375d9e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacegbmath.html#a63d997c76f20c4b6879cd2991c375d9e">gbmath::colorSetB</a> (unsigned int &amp;col, byte_t b)</td></tr>
<tr class="separator:a63d997c76f20c4b6879cd2991c375d9e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a943df2f31c8f208982bfeb0dfdb79bcd"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacegbmath.html#a943df2f31c8f208982bfeb0dfdb79bcd">gbmath::colorSetAf</a> (unsigned int &amp;color, float a)</td></tr>
<tr class="separator:a943df2f31c8f208982bfeb0dfdb79bcd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a498e22cb9657c7275d83effa77dd487b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacegbmath.html#a498e22cb9657c7275d83effa77dd487b">gbmath::colorSetRf</a> (unsigned int &amp;color, float r)</td></tr>
<tr class="separator:a498e22cb9657c7275d83effa77dd487b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ace9092fff1027b38b1aff05dfe9bd308"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacegbmath.html#ace9092fff1027b38b1aff05dfe9bd308">gbmath::colorSetGf</a> (unsigned int &amp;color, float g)</td></tr>
<tr class="separator:ace9092fff1027b38b1aff05dfe9bd308"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5a0a13beb72de2527e364cd39b312db3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacegbmath.html#a5a0a13beb72de2527e364cd39b312db3">gbmath::colorSetBf</a> (unsigned int &amp;color, float b)</td></tr>
<tr class="separator:a5a0a13beb72de2527e364cd39b312db3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac156a4f2083848be07c449693eb77830"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacegbmath.html#ac156a4f2083848be07c449693eb77830">gbmath::colorRgb24_SwapRG</a> (color3_24 &amp;color)</td></tr>
<tr class="separator:ac156a4f2083848be07c449693eb77830"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acffc53836a6f186ac1a1c4b712e2d9a7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacegbmath.html#acffc53836a6f186ac1a1c4b712e2d9a7">gbmath::colorRgb24_SwapRB</a> (color3_24 &amp;color)</td></tr>
<tr class="separator:acffc53836a6f186ac1a1c4b712e2d9a7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2e5e11ee8e8eab42afd129f7bc63c679"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacegbmath.html#a2e5e11ee8e8eab42afd129f7bc63c679">gbmath::colorRgb24_SwapGB</a> (color3_24 &amp;color)</td></tr>
<tr class="separator:a2e5e11ee8e8eab42afd129f7bc63c679"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9a4d6352a51c3b2c5a4ba8b543586bf6"><td class="memItemLeft" align="right" valign="top">color3_24&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacegbmath.html#a9a4d6352a51c3b2c5a4ba8b543586bf6">gbmath::color_rgb_fFrom_uicolor</a> (unsigned int color)</td></tr>
<tr class="memdesc:a9a4d6352a51c3b2c5a4ba8b543586bf6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Conversion uicolor32_t in color_rgb24_s.  <a href="#a9a4d6352a51c3b2c5a4ba8b543586bf6">More...</a><br/></td></tr>
<tr class="separator:a9a4d6352a51c3b2c5a4ba8b543586bf6"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>color functions. </p>

<p>Definition in file <a class="el" href="color__functions_8h_source.html">color_functions.h</a>.</p>
</div></div><!-- contents -->
<hr class="footer"/>
<!--address class="footer"-->
<!--small-->
<br>
&nbsp;&nbsp;&nbsp;<b>Project page:</b> &nbsp;<a target="_blank" href="https://code.google.com/p/gbmath/">https://code.google.com/p/gbmath/</a>&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;<b>Doc page:</b> &nbsp;<a target="_blank" href="http://www.it.ks777.ru/docs">http://www.it.ks777.ru/docs</a>&nbsp;&nbsp;<br>
<br>
Generated on Sat Jul 27 2013 08:09:04 for gbmath by &#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.4
